<html>
<head>
<meta name="generator" content="PhpED Version 5.5 (Build 5517)">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>添加书签</title>
<link rel="stylesheet" rev="stylesheet" href="/qsf_mvc/app/views/css/cSite_common.css" type="text/css" media="screen" />
<link rel="stylesheet" rev="stylesheet" href="/qsf_mvc/app/views/css/style.css" type="text/css" media="screen" />
</head>
<body>
<div class="gbookBox">
	<form method="POST" id="form1" action="/qsf_mvc/index/index/add/" >
    <input type="hidden" name="qsf_db"  value="<?php echo $db; ?>">    
    <input type="hidden" name="qsf_table"  value="<?php echo $table; ?>">
	<div class="gbook-f">
	    <?php foreach($add as $k => $v) {?>
           <?php if ( $v['add'] == '1') {?>
               <?php if ( $v['form'] == 'select') {?>
               <?php echo $v['cnname']; ?>
               <select id="<?php echo $v['enname']; ?>"  name="<?php echo $v['enname']; ?>" style="width:100px">
                    <option value="0" selected="selected">0</option>
                    <option value="1">1</option>
                    <option value="2">2</option>
                    <option value="3">3</option>
               </select></br>
               <?php }elseif ( $v['form'] == 'textarea'){ ?>
               <?php echo $v['cnname']; ?><textarea  id="<?php echo $v['enname']; ?>"    name="<?php echo $v['enname']; ?>"  rows="5" cols="30"><?php echo $v['default']; ?></textarea></br>             
               <?php }elseif ( $v['form'] == 'date'){ ?>
               <?php echo $v['cnname']; ?><input type="txt"  id="<?php echo $v['enname']; ?>"    name="<?php echo $v['enname']; ?>"  value="<?php echo time(); ?>" /></br>                                                                                                                                
               <?php }else {?>
               <?php echo $v['cnname']; ?><input type="txt"  id="<?php echo $v['enname']; ?>"    name="<?php echo $v['enname']; ?>"  value="<?php echo $v['default']; ?>" /></br>              
               <?php }?>
           <?php }?>
        <?php }?> 
		<div class="gbook-row">
			<div class="gbook-c">
				<span class="gbookBtn1"><input type="submit" name="submit" value="添加" /></span>
				<span class="gbookBtn2"><input type="reset" value="重填"  /></span>
			</div>
		</div>
	</div>
	</form>	
</div>
</body>
</html>



